<?php

class accountActions extends sfActions {

    public function executeIndex(sfWebRequest $request){
        $google_data = null;
        $facebook_data = null;

        $current_user = $this->getUser()->getAttribute('current_user');
        $this->current_user = $current_user;

        $c = new Criteria();
        $c->add(UsuarioGooglePeer::USUARIO_ID, $current_user->getId());
        $google_data = UsuarioGooglePeer::doSelectOne($c);
        $this->google_data = $google_data;

        $c->clear();
        $c->add(UsuarioFacebookPeer::USUARIO_ID, $current_user->getId());
        $google_data = UsuarioFacebookPeer::doSelectOne($c);
        $this->facebook_data = $facebook_data;

        $c->clear();
        $this->platforms = PlataformaPeer::doSelect($c);
    }

}